﻿namespace Algo.Tests
{
    using Algo.Sort;

    using NUnit.Framework;

    using Shouldly;

    [TestFixture]
    public class SortUtilitiesFixture
    {
        [Test]
        public void ShouldSwap()
        {
            // Given
            int[] array = { 1, 2 };

            // When
            SortUtilities.Swap(array, 0, 1);

            // Then
            array[0].ShouldBe(2);
            array[1].ShouldBe(1);
        }
    }
}
